-- GENERATED SPELL FOR [Rigglefuzz] --


function spell0_2817(pUnit, Event) --@Flash Bomb,n/a--
pUnit:FullCastSpellOnTarget(5134,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2817', 10323, 1)
end

function Sorts_2817(pUnit, Event)
local choix_sorts_2817 = math.random(0, 0)
if choix_sorts_2817 == 0 then
pUnit:RegisterEvent('spell0_2817', 1, 1)
end
end

function mob2817_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2817', math.random(1500, 3000), 1)
end

function mob2817_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2817_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2817_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2817, 1, 'mob2817_Action')
RegisterUnitEvent(2817, 2, 'mob2817_Leave')
RegisterUnitEvent(2817, 3, 'mob2817_Kill')
RegisterUnitEvent(2817, 4, 'mob2817_Die')
